Methods
close
close( ) : void
close( statusCode: number , reason: string ) : void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2908
Returns void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2914
Parameters
statusCode: number
reason: string
Returns void
closeHandler
closeHandler( closeHandler: ( ( res: void ) => void ) | Handler < void > ) : SockJSSocket
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2881
Parameters
closeHandler: ( ( res: void ) => void ) | Handler < void >
drainHandler
drainHandler( handler: ( ( res: void ) => void ) | Handler < void > | null | undefined ) : SockJSSocket
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2893
Parameters
handler: ( ( res: void ) => void ) | Handler < void > | null | undefined
end
end( ) : PromiseLike < void >
end( arg0: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : void
end( data: Buffer ) : PromiseLike < void >
end( data: Buffer , handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2859
Returns PromiseLike < void >
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2861
Parameters
arg0: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
Returns void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2863
Parameters
Returns PromiseLike < void >
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2865
Parameters
data: Buffer
handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
Returns void
endHandler
endHandler( endHandler: ( ( res: void ) => void ) | Handler < void > | null | undefined ) : SockJSSocket
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2879
Parameters
endHandler: ( ( res: void ) => void ) | Handler < void > | null | undefined
exceptionHandler
exceptionHandler( handler: ( ( res: Throwable ) => void ) | Handler < Throwable > | null | undefined ) : SockJSSocket
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2869
Parameters
handler: ( ( res: Throwable ) => void ) | Handler < Throwable > | null | undefined
fetch
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2877
Parameters
handler
handler( handler: ( ( res: Buffer ) => void ) | Handler < Buffer > | null | undefined ) : SockJSSocket
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2871
Parameters
handler: ( ( res: Buffer ) => void ) | Handler < Buffer > | null | undefined
headers
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2930
Returns MultiMap
localAddress
localAddress( ) : SocketAddress
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2924
Returns SocketAddress
pause
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2873
pipe
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2853
Returns Pipe < Buffer >
pipeTo
pipeTo( dst: WriteStream < Buffer > ) : PromiseLike < void >
pipeTo( dst: WriteStream < Buffer > , handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2855
Parameters
Returns PromiseLike < void >
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2857
Parameters
dst: WriteStream < Buffer >
handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
Returns void
remoteAddress
remoteAddress( ) : SocketAddress
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2919
Returns SocketAddress
resume
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2875
routingContext
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2939
setWriteQueueMaxSize
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2891
Parameters
uri
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2935
Returns string
webSession
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2943
Returns Session | null
webUser
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2947
Returns User | null
write
write( data: string ) : PromiseLike < void >
write( data: string , handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : void
write( data: Buffer ) : PromiseLike < void >
write( data: Buffer , handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > > ) : void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2883
Parameters
Returns PromiseLike < void >
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2885
Parameters
data: string
handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
Returns void
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2887
Parameters
Returns PromiseLike < void >
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2889
Parameters
data: Buffer
handler: ( ( res: AsyncResult < void > ) => void ) | Handler < AsyncResult < void > >
Returns void
writeHandlerID
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2903
Returns string
writeQueueFull
writeQueueFull( ) : boolean
Defined in io.vertx/vertx-web/target/npm/index.d.ts:2867
Returns boolean
Legend
Static property
Static method
You interact with SockJS clients through instances of SockJS socket.
The API is very similar to {@link WebSocket}. It implements both and so it can be used with {@link Pump} to pump data with flow control.