Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safari browser support #21

Open
aliunco opened this issue Apr 24, 2016 · 0 comments
Open

safari browser support #21

aliunco opened this issue Apr 24, 2016 · 0 comments

Comments

@aliunco
Copy link

aliunco commented Apr 24, 2016

I've written this simple code:

var primus = Primus.connect('http://185.24.139.62:7070');
    var register = primus.channel('reg');
    register.write(JSON.stringify({
      "jsonrpc": "2.0",
      "method" : "register-request",
      "params" : "1234",
      "id"     : "1"
    })); 

all browsers work fine, except safari! and IOS browsers (webView)
this is the response message:
[Error] WebSocket connection to 'ws://185.24.139.62:7070/primus/?_primuscb=LH8SfNk' failed: WebSocket is closed before the connection is established.
close (primus.js:2801)
emit (primus.js:236)
opening (primus.js:2733)
emit (primus.js:257)
reconnect (primus.js:2791)
emit (primus.js:236)
reconnect (primus.js:1883)
emitter (primus.js:143)
emit (primus.js:238)
delay (primus.js:629)
tickedtock (primus.js:927)

is there anything wrong with my code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant