-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'of' does not exist on type 'Socket<DefaultEventsMap, DefaultEventsMap>'. #1600
Comments
Hi!
Reference: https://socket.io/docs/v4/server-api/ |
thank u for answering :) im using python on the server side, okey so yeah from the server side I know how to do it, but from client side how can I pick a namespace and a room ? is there something I'm missing. Because I was looking at https://socket.io/docs/v4/namespaces/ and there was nothing mentioning it s server side. Am I understanding it correctly ? |
because on python i have the emit function with kwargs and have room , namespace but in client ... i have only emit with first arg event name and second the data I'm sending :-? |
so for u to understand my flow: |
i think i understand so the be is the source of truth, so when I say send it to room = x on the client when I listen it will send only to the rooms that I joined from the be |
Describe the bug
i can't find the of property to defined a namespace
also cant find socket.to ... to send to specific room >.<
To Reproduce
Socket.IO client version:
^4.7.2
Client
Expected behavior
wanted to have autocomplete on all methods like in the docs .
Platform:
Additional context
it s about typescript or idk I tried to install @types but same result ....
The text was updated successfully, but these errors were encountered: