* Called with each incoming transport connection. * * @param {engine.Socket} conn * @return self * @private
(conn: RawSocket)
| 738 | * @private |
| 739 | */ |
| 740 | private onconnection(conn: RawSocket): this { |
| 741 | // @ts-expect-error use of private |
| 742 | debug("incoming connection with id %s", conn.id); |
| 743 | const client = new Client(this, conn); |
| 744 | if (conn.protocol === 3) { |
| 745 | // @ts-expect-error use of private |
| 746 | client.connect("/"); |
| 747 | } |
| 748 | return this; |
| 749 | } |
| 750 | |
| 751 | /** |
| 752 | * Looks up a namespace. |