Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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);