You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bsock.js 432B

1234567891011121314
  1. 'use strict';
  2. const WebSocket = require('./backend');
  3. const Server = require('./server');
  4. const Socket = require('./socket');
  5. exports.WebSocket = WebSocket;
  6. exports.Server = Server;
  7. exports.server = () => new Server();
  8. exports.createServer = Server.createServer.bind(Server);
  9. exports.attach = Server.attach.bind(Server);
  10. exports.Socket = Socket;
  11. exports.socket = () => new Socket();
  12. exports.connect = Socket.connect.bind(Socket);