Show:

Q.Socket Class

Module: Q

Attach socket to server

Constructor

Q.Socket

(
  • server
  • [options={}]
)

Parameters:

  • server http.Server
  • [options={}] Object optional

Item Index

Methods

Methods

listen

(
  • options
)

Start http server if needed and start listening to socket

Parameters:

  • options Object

    Can be any options for the server.listen() in socket.io, as well as the following options:

    • host Object

      Set the hostname to listen on

    • port Object

      Set the port to listen on

    • https Object

      If you use https, pass https options here (see Q.listen)