Open emps opened 8 years ago
Could you may be deliver a bit more of information. Actually I have nothing and would need to reproduce this all myself. Do you have any error messages and so on?
I do not use mean.io, so please provide a complete gist or git repo that is reproducing your problem.
well i get Status Code:404 Not Found
Request URL:http://localhost:3010/socket.io/?token=eyJhbGciO...xK8&EIO=3&transport=polling&t=L8taw-Q
i can see also in ur examples
io.listen(server);
return server;
do u have any example what to do with the io ?> cause we return server and looks like io dies there
This is not that helpful...
This module needs to overwrite the listen function of the webserver, I guess "serve" already starts the webserver, this is definitely wrong.
yeh it starts it
Then you probably need to stop using the serve method and use express directly.
but then i need stop using all the engine of meanio ? i wish some how include ur module with meanio
btw app works only sockets cant connect
there might be a way to use meanio with this module, but it does not seem that there is any proper documentation for mean io
and if mean.serve creates server its same like http.createServer in ur example
no much docs i just read the code of engine to understand a bit big code
If there aren't that much docs it gets even harder to reproduce this and costs way to much time...
Mean uses express, so I expect that it should be handled the same way how one would handle it with express. The question is how to reach express, we don't want that serve thingy if this already binds to ports.
It always binds to a port, thus my best advice is to you to create your socket io application apart from your mean.io project. You could also ask the devs if there is a way to get the server without binding to a port how to access the express component manually start the listening.
It is just common that projects like mean.io tend to build "convenience" wrapper and thus build things in ways that are highly incompatible... If you hear something else or get information how to access the express component and disable mean.io to bind per default you can comeback and we will get this working.
yes thanks @timelf123 i also added there some *fix
im tring make module work with meanio tried many ways even changed setupSlave callback to be promise cause meanio server start isnot sync and so i rechanged the server.js of meanio to (server starts but client sockets cant connect to the server )