Socket.IO and non-socket.IO websocket client

785 views
Skip to first unread message

David Lab

unread,
Apr 2, 2012, 5:34:37 AM4/2/12
to Socket.IO
Hi all,

I am currently trying to make a Socket.IO server communicate with
a .Net websocket client (here is the project's page :
http://websocket4net.codeplex.com/).
But as far I understand, I need to use a specific address to make the
client communicate with Socket.IO without using the Socket.IO protocol
and use Websocket. After seeing something near in a post I tried this
one :

ws://127.0.0.1:8080/socket.io/websocket

But I get a unknown transport "undefined" warn. Is there anything else
to add to get the websocket url ?

David

Arnout Kazemier

unread,
Apr 2, 2012, 2:19:39 PM4/2/12
to sock...@googlegroups.com
You need to start a HTTP GET handshake with the server, that will generate a unique
connection id which you can use to establish an authorized persistent connection with
the server.

You can find more detailed information about the protocol in the repo:

David Lab

unread,
Apr 5, 2012, 5:07:42 AM4/5/12
to Socket.IO
Still trying to use a regular websocket client with an handshake
performed earlier, I am having trouble with namespaces. According to
the protocol if I have a namespace called chat (that comes from the
example on the readme), I should make a post on the following url :
http://127.0.0.1:8080/chat/1/
But when I try this I get a "Welcome to socket.io" response. When I
make a post on this url :
http://127.0.0.1:8080/socket.io/1/
I get an answer with an id.
I am missing something on the protocol for the first post request ?

David
Reply all
Reply to author
Forward
0 new messages