class Server extends ^
- Annotations
- @JSType() @JSImport("net", "Server") @native()
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Server
- ^
- ^
- EventEmitter
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Server(options: Unit, connectionListener: Function1[Socket, Unit])
- new Server(options: ServerOpts, connectionListener: Function1[Socket, Unit])
- new Server(options: ServerOpts)
- new Server(connectionListener: Function1[Socket, Unit])
- new Server()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addListener(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def addListener(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def addListener_close(event: close, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_connection(event: connection, listener: Function1[Socket, Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def address(): |[|[AddressInfo, String], Null]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(callback: Function1[UndefOr[Error], Unit]): Server.this.type
- def close(): Server.this.type
- var connections: Double
- def emit(event: Symbol, args: Any*): Boolean
- Definition Classes
- EventEmitter
- def emit(event: String, args: Any*): Boolean
- Definition Classes
- EventEmitter
- def emit_close(event: close): Boolean
- Annotations
- @JSName("emit")
- def emit_connection(event: connection, socket: Socket): Boolean
- Annotations
- @JSName("emit")
- def emit_error(event: error, err: Error): Boolean
- Annotations
- @JSName("emit")
- def emit_listening(event: listening): Boolean
- Annotations
- @JSName("emit")
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eventNames(): Array[|[String, Symbol]]
- Definition Classes
- EventEmitter
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getConnections(cb: Function2[|[Error, Null], Double, Unit]): Unit
- def getMaxListeners(): Double
- Definition Classes
- EventEmitter
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def listen(port: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: Unit, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: Unit, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: Unit, backlog: Double): Server.this.type
- def listen(port: Unit, hostname: String, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: String, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: String, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, hostname: String, backlog: Double): Server.this.type
- def listen(port: Unit, hostname: String): Server.this.type
- def listen(port: Unit, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Unit, backlog: Double): Server.this.type
- def listen(port: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: Unit, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: Unit, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: Unit, backlog: Double): Server.this.type
- def listen(port: Double, hostname: String, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: String, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: String, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, hostname: String, backlog: Double): Server.this.type
- def listen(port: Double, hostname: String): Server.this.type
- def listen(port: Double, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(port: Double, backlog: Double): Server.this.type
- def listen(port: Double): Server.this.type
- def listen(path: String, listeningListener: Function0[Unit]): Server.this.type
- def listen(path: String, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(path: String, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(path: String, backlog: Double): Server.this.type
- def listen(path: String): Server.this.type
- def listen(options: ListenOptions, listeningListener: Function0[Unit]): Server.this.type
- def listen(options: ListenOptions): Server.this.type
- def listen(handle: Any, listeningListener: Function0[Unit]): Server.this.type
- def listen(handle: Any, backlog: Unit, listeningListener: Function0[Unit]): Server.this.type
- def listen(handle: Any, backlog: Double, listeningListener: Function0[Unit]): Server.this.type
- def listen(handle: Any, backlog: Double): Server.this.type
- def listen(handle: Any): Server.this.type
- def listen(): Server.this.type
- def listenerCount(event: Symbol): Double
- Definition Classes
- EventEmitter
- def listenerCount(event: String): Double
- Definition Classes
- EventEmitter
- def listeners(event: Symbol): Array[Function]
- Definition Classes
- EventEmitter
- def listeners(event: String): Array[Function]
- Definition Classes
- EventEmitter
- var listening: Boolean
- var maxConnections: Double
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def off(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def off(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def on(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def on(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def on_close(event: close, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_connection(event: connection, listener: Function1[Socket, Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_error(event: error, listener: Function1[Error, Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_listening(event: listening, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("on")
- def once(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def once(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def once_close(event: close, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_connection(event: connection, listener: Function1[Socket, Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_error(event: error, listener: Function1[Error, Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_listening(event: listening, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("once")
- def prependListener(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def prependListener(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def prependListener_close(event: close, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_connection(event: connection, listener: Function1[Socket, Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependOnceListener(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def prependOnceListener(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def prependOnceListener_close(event: close, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_connection(event: connection, listener: Function1[Socket, Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def rawListeners(event: Symbol): Array[Function]
- Definition Classes
- EventEmitter
- def rawListeners(event: String): Array[Function]
- Definition Classes
- EventEmitter
- def ref(): Server.this.type
- def removeAllListeners(event: Symbol): Server.this.type
- Definition Classes
- EventEmitter
- def removeAllListeners(event: String): Server.this.type
- Definition Classes
- EventEmitter
- def removeAllListeners(): Server.this.type
- Definition Classes
- EventEmitter
- def removeListener(event: Symbol, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def removeListener(event: String, listener: Function1[Any, Unit]): Server.this.type
- Definition Classes
- EventEmitter
- def setMaxListeners(n: Double): Server.this.type
- Definition Classes
- EventEmitter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unref(): Server.this.type
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated