microscope-ws
microscope websocket WsApplication class and Hubs
WsApplication
Sample (Application.js):
Define basic WsApplication class.
// Importsvar WsApplication = ;// WsApplication classvar Application = WsApplication;moduleexports = Application;
Sample (./bin/www):
Run basic http server and instantiate WsApplication with server in constructor param
// Importsvar fs = ;var path = ;var http = ;var Application = ;// create simple http server and serve html file.var server = http;// create microscope WsApplication attach to servervar application = server: server ;//run serverserver;