/** * Create new instance, set {@link ProtocolHandler} and register {@link TyrusEndpointWrapper}. * * @param protocolHandler used for writing data (sending). * @param endpointWrapper notifies registered endpoints about incoming events. */ public TyrusWebSocket(final ProtocolHandler protocolHandler, final TyrusEndpointWrapper endpointWrapper) { this.protocolHandler = protocolHandler; this.endpointWrapper = endpointWrapper; protocolHandler.setWebSocket(this); }
/** * Create new instance, set {@link ProtocolHandler} and register {@link TyrusEndpointWrapper}. * * @param protocolHandler used for writing data (sending). * @param endpointWrapper notifies registered endpoints about incoming events. */ public TyrusWebSocket(final ProtocolHandler protocolHandler, final TyrusEndpointWrapper endpointWrapper) { this.protocolHandler = protocolHandler; this.endpointWrapper = endpointWrapper; protocolHandler.setWebSocket(this); }
protocolHandler.setWebSocket(socket); protocolHandler.setExtensions(extensions); protocolHandler.setExtensionContext(extensionContext);
protocolHandler.setWebSocket(socket); protocolHandler.setExtensions(extensions); protocolHandler.setExtensionContext(extensionContext);