* Binds socket.io to an engine.io instance. * * @param engine engine.io (or compatible) server * @return self
(engine: BaseServer)
| 648 | * @return self |
| 649 | */ |
| 650 | public bind(engine: BaseServer): this { |
| 651 | this.engine = engine; |
| 652 | this.engine.on("connection", this.onconnection.bind(this)); |
| 653 | return this; |
| 654 | } |
| 655 | |
| 656 | /** |
| 657 | * Called with each incoming transport connection. |