mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 06:40:56 -06:00
* root: move deploy scripts from server to top level scripts * remove postinstall download stop variable * deploy: list all dev dependencies * working on deploy run * WIP comment out obsolete run-sequence * add cypress-io/cypress-example-recipes * root: enable run all to skip package or packages by name * deploy: move coffee lint to root * deploy: make bump async * deploy: WIP update deploy + build processes for monorepo * Add cypress-io/cypress-example-module-api project build to bump * remove commas * Add project cypress-io/cypress-test-ci-environments to list of projects to test * deploy: WIP refactor classes -> functional * deploy: don't copy node_modules or prune -> just npm install * cli: consolidate important fields into monorepo root, pull out and build * all: cleanup package.json, remove versions, license, repo information -move some deps to devDeps * all: convert es5 -> es6 + fix linting * deploy: specify files to include when copying packages for dist * deploy: convert coffee script in place + remove coffee files
Cypress Core Socket
This is a shared lib for holding both the socket.io server and client.
Usage
var socket = require("packages/core-socket")
// returns
{
server: require("socket.io"),
client: require("socket.io-client"),
getPathToClientSource: function(){
// returns path to the client 'socket.io.js' file
// for use in the browser
}
}
var socket = require("packages/core-socket")
// server usage
var srv = require("http").createServer()
var io = socket.server(srv)
io.on("connection", function(){})
// client usage
var client = socket.client("http://localhost:2020")
client.on("connect", function(){})
client.on("event", function(){})
client.on("disconnect", function(){})
// path usage
socket.getPathToClientSource()
// returns your/path/to/node_modules/socket.io-client/socket.io.js0
Development
Watching
npm test
Testing
npm test-once
Changelog
0.2.1 - (04/20/17)
- bump cypress releaser dep
0.2.0 - (06/17/16)
- added socket.getClientVersion and socket.getClientSource methods
0.1.0 - (04/29/16)
- initial release