You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get below data in erlang server using below code
case gen_tcp:recv(Sock, 0) of
{ok, Data} ->
io:format("recv!~n"),
case handle_request(Sock, Data) of
ok ->
io:format("~p",[Data]),
sock_loop(Sock);
exit ->
exit(normal)
end;
{error, Why} ->
error(Why)
end.
This repository is unmaintained and is not compatible with any recent socket.io version, only very old ones before the thing had turned to a kind of framework.
I am using erl9.3 and angular 6 with ([email protected])
When I call
this.socket = io.connect('localhost:3000');
I get below data in erlang server using below code
GET / HTTP/1.1\r\n
Host: localhost:4001\r\n
Connection: Upgrade\r\n
Pragma: no-cache\r\n
Cache-Control: no-cache\r\n
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36\r\n
Upgrade: websocket\r\n
Origin: http://localhost:4200\r\nSec-WebSocket-Version: 13\r\n
Accept-Encoding: gzip, deflate, br\r\n
Accept-Language: en-US,en;q=0.9\r\n
Cookie: ga=GA1.1.1506806518.1546498546; io=uJqwysezr_yBH-aAAAj\r\n
Sec-WebSocket-Key: vwbgM9H5sh0z1irkN8Ugyg==\r\n
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n
After that nothing happens. Even not fire 'connect' callback at Angular site.
The text was updated successfully, but these errors were encountered: