Skip to content

Commit

Permalink
Updated websockets example for compatibility with node.js version 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbirken committed Mar 7, 2017
1 parent a1e04b0 commit b354366
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Code changes: Tamas Szabo (itemis AG)
******************************************************************************/
var EventEmitter = process.EventEmitter, protocol = require('./wamp_v1'), packets = protocol.packets, handlers = protocol.handlers;
var EventEmitter = require('events'), protocol = require('./wamp_v1'), packets = protocol.packets, handlers = protocol.handlers;

function Server() {
this.rpcClasses = {};
Expand Down
9 changes: 9 additions & 0 deletions org.franca.showcase.html5/server_nodejs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "websocket-server",
"dependencies" : {
"mime": "*",
"websocket.io": "git://github.com/LearnBoost/websocket.io#5f0b3799f50944bc4d1eb58acdef61c38883d6cf",
"speaker": "*",
"lame": "*"
}
}

0 comments on commit b354366

Please sign in to comment.