[erlang-questions] Gun and websockets

Robert Virding <>
Wed Aug 13 23:57:05 CEST 2014


I am having problems trying to open a websocket with gun
https://github.com/extend/gun. So I have been trying:

{ok,Pid} = gun:open("10.0.1.86", 8080, [{type,tcp}]),
gun:ws_upgrade(Pid, "/content/chats/connect/"),

and nothing happens, it just times out. Checking, the process Pid started
by gun:open dies with an undef error but I don't see which function it is
trying to call. Using http://www.websocket.org/echo.html and opening ws://
10.0.1.86:8080/content/chats/connect works fine.

Any suggestions?

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140813/b2cd0c8e/attachment.html>


More information about the erlang-questions mailing list