-
-
Save saschagehlich/9e3a7648afe5a77fd11e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io = require "socket.io-client" | |
express = require "express" | |
before (done) -> | |
app = express() | |
server = app.listen 3434 | |
require("socket.io").listen server | |
done() | |
describe "Backend Server", -> | |
it "should successfully connect to the socket.io server", (done) -> | |
socket = io.connect "http://localhost:3434", "force new connection": true | |
console.log "connecting..." | |
socket.on "connect", -> | |
console.log "connected" | |
done() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment