socket.io client question #57
Replies: 4 comments 1 reply
-
when useing skio := socket.NewServer( types.NewWebServer(nil), nil)
skio.On("connection", func(clis ...any){}) it does not catch the |
Beta Was this translation helpful? Give feedback.
-
By default, skio.Of("/admin", nil).On("connection", func(clis ...any){}) |
Beta Was this translation helpful? Give feedback.
-
If you need dynamic namespace you can use regexp expression: skio.Of(regexp.MustCompile(`/\w+`), nil).On("connection", func(clis ...any){}) |
Beta Was this translation helpful? Give feedback.
-
thanks for your help. Another question is that I want to wrap (echo)[github.com/labstack/echo/v4] context when on connection, how can I do for this. |
Beta Was this translation helpful? Give feedback.
-
from official documents, web side socket.io client can connect to special namespace, how to handle the connection event on server side ?
client side:
server side:
not works.
Beta Was this translation helpful? Give feedback.
All reactions