* Called with each incoming transport connection. * * @param {engine.Socket} conn * @return self * @private
(conn)
| 661 | * @private |
| 662 | */ |
| 663 | private onconnection(conn): this { |
| 664 | debug("incoming connection with id %s", conn.id); |
| 665 | const client = new Client(this, conn); |
| 666 | if (conn.protocol === 3) { |
| 667 | // @ts-ignore |
| 668 | client.connect("/"); |
| 669 | } |
| 670 | return this; |
| 671 | } |
| 672 | |
| 673 | /** |
| 674 | * Looks up a namespace. |