Open oneto018 opened 7 years ago
Hi @oneto018, Thanks for the pull request. Will need to make sure to test that code before I can merge the request.
When doing so, make sure that the tests pass for not only having a scoped namespace per SocketioBot instance, but also within said namespace, using "botmasterUserId" and what happens when the same botmasterUserId is used accross two different namespaces. Really answering the question what should happen in such cases.
Any updates?
I am sorry! I completely forgot about this. If this feature is something others interested in, I will write the tests when I have time
With this merge, it would be possible to use single instance of socket.io with multiple chatbots with namespacing option from socket.io. Basically this allows optional setting (in place of server) socket_io. Thats supposed to be an instance of socket.io or namespaced instance https://socket.io/docs/rooms-and-namespaces/#custom-namespaces