Server#serveClient(v:Boolean):Server
If v
is true
the attached server (see Server#attach
) will serve the client files. Defaults to true
.
This method has no effect after attach
is called.
1 2 3 4 5 6 7 | // pass a server and the `serveClient` option var io = require( 'socket.io' )(http, { serveClient: false }); // or pass no server and then you can call the method var io = require( 'socket.io' )(); io.serveClient( false ); io.attach(http); |
If no arguments are supplied this method returns the current value.
Please login to continue.