googollee / go-socket.io

socket.io library for golang, a realtime application framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use middlewares to authentication?

libra82 opened this issue · comments

just like this:
io.use((socket, next) => { const token = socket.handshake.auth.token; // ... });

Is there a example for golang? Thank you!