How can connect to SuperSocket server by javascript?

Jun 22, 2012 at 12:28 AM

hello all,

I tried to open the server following quick start.(echo server)

 

And telnet can connect to the server also sending and response.

 

However, when I tried to connect by javascript, it doesnot work.

 

When I tried it to "ws://echo.websocket.org", the javascript works well.

 

However, when I tried localhost, the javascript doesnot work.

Actually, the websocket object's readystate is "3". 

 

What's this problem? How can I deal with this situation?

 

Is there something configuration or additional code for dealing javascript on the server?

Coordinator
Jun 22, 2012 at 1:00 AM
What you should use is SuperWebSocket, not SuperSocket.

Sent from my Windows Phone

From: rupang21
Sent: 6/22/2012 8:28 AM
To: kerry-jiang@hotmail.com
Subject: How can connect to SuperSocket server by javascript? [SuperSocket:360547]

From: rupang21

hello all,

I tried to open the server following quick start.(echo server)

And telnet can connect to the server also sending and response.

However, when I tried to connect by javascript, it doesnot work.

When I tried it to "ws://echo.websocket.org", the javascript works well.

However, when I tried localhost, the javascript doesnot work.

Actually, the websocket object's readystate is "3".

What's this problem? How can I deal with this situation?

Is there something configuration or additional code for dealing javascript on the server?

Jun 22, 2012 at 3:12 PM

Is there sample SuperWebSocket server? I cannot find any documentation about that.

Coordinator
Jun 22, 2012 at 3:20 PM
There are samples in source code!

Sent from my Windows Phone

From: rupang21
Sent: 6/22/2012 11:12 PM
To: kerry-jiang@hotmail.com
Subject: Re: How can connect to SuperSocket server by javascript? [SuperSocket:360547]

From: rupang21

Is there sample SuperWebSocket server? I cannot find any documentation about that.

Coordinator
Jun 22, 2012 at 3:28 PM
You also can consider test project in SuperWebSocket as samples!

Sent from my Windows Phone

From: rupang21
Sent: 6/22/2012 11:12 PM
To: kerry-jiang@hotmail.com
Subject: Re: How can connect to SuperSocket server by javascript? [SuperSocket:360547]

From: rupang21

Is there sample SuperWebSocket server? I cannot find any documentation about that.