@ -4,11 +4,13 @@ export abstract class WebSocketHandlerAdapter {
|
||||
private _Handler;
|
||||
constructor() {
|
||||
let ChannelInboundHandlerAdapterImpl = Java.extend(ChannelInboundHandlerAdapter, {
|
||||
channelRead: this.channelRead.bind(this)
|
||||
channelRead: this.channelRead.bind(this),
|
||||
exceptionCaught: this.exceptionCaught.bind(this)
|
||||
})
|
||||
this._Handler = new ChannelInboundHandlerAdapterImpl()
|
||||
}
|
||||
abstract channelRead(ctx: any, channel: any);
|
||||
abstract exceptionCaught(ctx: any, cause: Error);
|
||||
getHandler() {
|
||||
return this._Handler;
|
||||
}
|
||||
|
Reference in New Issue
Block a user