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
It seems we can't use handler.NewDefaultServer() and then add websocket transport with InitFunc. i.e. In this websocket recipe one can't use handler.NewDefaultServer instead of handler.New or am I missing something?
Is there any way to use handler.NewDefaultServer and also specify the InitFunc for websocket transport other than copy-pasting NewDefaultServer creating a custom function overriding it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
It seems we can't use
handler.NewDefaultServer()
and then add websocket transport withInitFunc
. i.e. In this websocket recipe one can't usehandler.NewDefaultServer
instead ofhandler.New
or am I missing something?Is there any way to use
handler.NewDefaultServer
and also specify theInitFunc
for websocket transport other than copy-pastingNewDefaultServer
creating a custom function overriding it?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions