class Server extends Object with StObject
- Annotations
- @JSType() @JSImport("tls", "Server") @native()
- Source
- Server.scala
- Alphabetic
- By Inheritance
- Server
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Server(options: TlsOptions, secureConnectionListener: Function1[TLSSocket, Unit])
- new Server(secureConnectionListener: Function1[TLSSocket, Unit])
- new Server(options: TlsOptions)
- 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 addContext(hostName: scala.Predef.String, credentials: SecureContextOptions): Unit
The server.addContext() method adds a secure context that will be used if the client request's SNI name matches the supplied hostname (or wildcard).
- def addListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
events.EventEmitter 1.
events.EventEmitter 1. tlsClientError 2. newSession 3. OCSPRequest 4. resumeSession 5. secureConnection 6. keylog
- def addListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- def addListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("addListener")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def emit(event: Symbol, args: Any*): Boolean
- def emit(event: scala.Predef.String, args: Any*): Boolean
- def emit_OCSPRequest(event: OCSPRequest, certificate: Buffer, issuer: Buffer, callback: Function2[|[Error, Null], Buffer, Unit]): Boolean
- Annotations
- @JSName("emit")
- def emit_keylog(event: keylog, line: Buffer, tlsSocket: TLSSocket): Boolean
- Annotations
- @JSName("emit")
- def emit_newSession(event: newSession, sessionId: Buffer, sessionData: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
- Annotations
- @JSName("emit")
- def emit_resumeSession(event: resumeSession, sessionId: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
- Annotations
- @JSName("emit")
- def emit_secureConnection(event: secureConnection, tlsSocket: TLSSocket): Boolean
- Annotations
- @JSName("emit")
- def emit_tlsClientError(event: tlsClientError, err: Error, tlsSocket: TLSSocket): Boolean
- Annotations
- @JSName("emit")
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getTicketKeys(): Buffer
Returns the session ticket keys.
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def on(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
- def on_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("on")
- def on_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("on")
- def once(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
- def once_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("once")
- def once_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("once")
- def prependListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
- def prependListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependListener")
- def prependOnceListener(event: scala.Predef.String, listener: Function1[Any, Unit]): Server.this.type
- def prependOnceListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def prependOnceListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
- Annotations
- @JSName("prependOnceListener")
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def setSecureContext(details: SecureContextOptions): Unit
The server.setSecureContext() method replaces the secure context of an existing server.
The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.
- def setTicketKeys(keys: Buffer): Unit
The server.setSecureContext() method replaces the secure context of an existing server.
The server.setSecureContext() method replaces the secure context of an existing server. Existing connections to the server are not interrupted.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- 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