Cypress Core Socket
This is a shared lib for holding both the socket.io
server and client.
Install
npm install --save @cypress/core-socket
Usage
var socket = require("@cypress/core-socket")
{
server: require("socket.io"),
client: require("socket.io-client"),
getPathToClientSource: function(){
}
}
var socket = require("@cypress/core-socket")
var srv = require("http").createServer()
var io = socket.server(srv)
io.on("connection", function(){});
var client = socket.client("http://localhost:2020")
client.on("connect", function(){})
client.on("event", function(){})
client.on("disconnect", function(){})
socket.getPathToClientSource()
Changelog
0.2.0 - (06/17/16)
- added socket.getClientVersion and socket.getClientSource methods
0.1.0 - (04/29/16)