implicit final class ServerExtensions[T <: Server] extends AnyVal
net.Server Events
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServerExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def onClose(callback: () => Any): T
Emitted when a new connection is made.
Emitted when a new connection is made. socket is an instance of net.Socket.
- Annotations
- @inline()
server.on("close", function () { ... })
Example: - def onConnection(callback: Function): T
Emitted when a new connection is made.
Emitted when a new connection is made. socket is an instance of net.Socket.
- Annotations
- @inline()
- def onError(callback: (Error) => Any): T
Emitted when an error occurs.
Emitted when an error occurs. The 'close' event will be called directly following this event.
- Annotations
- @inline()
- def onListening(callback: Function): T
Emitted when the server has been bound after calling server.listen.
Emitted when the server has been bound after calling server.listen.
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- Any