How to use .of(namespace)?
See original GitHub issueHi! i was trying to use .of(namespace) but I could not figure out how to use it.
When I injected Socket in my Angular Service and called .of(‘myNamespace’) on the WrappedSocket instance I got the error:
ERROR TypeError: this.ioSocket.of is not a function at WrappedSocket.push../node_modules/ngx-socket-io/src/socket-io.service.js.WrappedSocket.of (socket-io.service.js:21)
It would be great to have a little documentation / an example about how to use this function.
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:17
Top Results From Across the Web
Namespace in C++ | Set 1 (Introduction) - GeeksforGeeks
Definition and Creation: Namespaces allow us to group named entities that otherwise would have global scope into narrower scopes, giving them ...
Read more >Namespaces in C++ - Tutorialspoint
A namespace is designed to overcome this difficulty and is used as additional information to differentiate similar functions, classes, variables etc. with the ......
Read more >Uses of Namespace in C++ - Simplilearn
Namespaces are regions in a program logically separated from the rest. They are necessary if you want more than one function with the...
Read more >How do you properly use namespaces in C++? - Stack Overflow
You can either use "use NAMESPACE" which is similar to an "import PACKAGE" statement, e.g. use std. Or you specify the package as...
Read more >Namespaces - cppreference.com
Namespaces provide a method for preventing name conflicts in large projects. Symbols declared inside a namespace block are placed in a named ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In socketservices you can use this.socket.ioSocket.nsp = “/mynamespace” only if you have a manually connection.
Hi there,
I’ve achieved namespace like below ,
It works fine and awesome!!!