How to use the onconnection function from http

Find comprehensive JavaScript http.onconnection code examples handpicked from public code repositorys.

188
189
190
191
192
193
194
195
196
  - `engine` _(engine.Server)_
  - **Returns** `Server`

Advanced use only. Binds the server to a specific engine.io `Server` (or compatible API) instance.

#### server.onconnection(socket)

  - `socket` _(engine.Socket)_
  - **Returns** `Server`
fork icon0
star icon0
watch icon2