implicit final class ServerEvents extends AnyVal
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(handler: () ⇒ Any): server.type
Emitted when the server closes.
Emitted when the server closes. Note that if connections exist, this event is not emitted until all connections are ended.
- Annotations
- @inline()
-
def
onConnection(handler: (Socket) ⇒ Any): server.type
Emitted when a new connection is made.
Emitted when a new connection is made. socket is an instance of net.Socket. - <net.Socket> The connection object
- Annotations
- @inline()
-
def
onError(handler: (SystemError) ⇒ Any): server.type
Emitted when an error occurs.
Emitted when an error occurs. The 'close' event will be called directly following this event. See example in discussion of server.listen. - <Error>
- Annotations
- @inline()
-
def
onListening(handler: () ⇒ Any): 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