btford / btford/angular-socket-io

can't find io.connect?!

Open
#118 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

I was trying to intergrate socket.io with meanjs following by this article: https://vexxhost.com/resources/tutorials/mean-socket-io-integration-tutorial/

I got io is not defined error on file
'public\modules\articles\services\socket.client.service.js'

```
'use strict';

//socket factory that provides the socket service
angular.module('core').factory('Socket', ['socketFactory',
function(socketFactory) {
return socketFactory({
prefix: '',
ioSocket: io.connect('http://localhost:3000')
});
}
]);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.