You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @kataras. the neffos.js works very well. but the coupling is too high. I want to change WebSocket. If there is an interface, I can implement it myself.
interfaceEventCallback{(evt: Event)}interfaceMsgCallback{(evt: MessageEvent)}interfaceWebSocket{Send(dat: string|ArrayBuffer);Close();OnMessage(cb: MsgCallback);OnOpen(cb: EventCallback);OnError(cb: EventCallback);OnClose(cb: EventCallback);}// WS provided by the runtimeletws=newWS;
let adapter: WebSocket={Send(dat){// logger// ...ws.send(dat)},Close(): void{// ...
ws.close()},OnMessage(cb){// ...ws.onMessage(cb);},OnOpen(cb){// ...ws.onOpen(cb);},OnError(cb){// ...ws.onErro(cb);},OnClose(cb){// ...ws.onClose(cb);}};neffos.SetWebsocketAdapter(adapter);
The text was updated successfully, but these errors were encountered:
Hello, @kataras. the neffos.js works very well. but the coupling is too high. I want to change WebSocket. If there is an interface, I can implement it myself.
The text was updated successfully, but these errors were encountered: