implicit final class ServerEvents extends AnyVal
net.Server Events
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServerEvents
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
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): server.type
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): server.type
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): server.type
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): server.type
Emitted when the server has been bound after calling server.listen.
Emitted when the server has been bound after calling server.listen.
- Annotations
- @inline()
- val server: Server
-
def
toString(): String
- Definition Classes
- Any