Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Disconnect from JS does not work #18

Open
kodlian opened this issue Mar 22, 2016 · 0 comments
Open

Disconnect from JS does not work #18

kodlian opened this issue Mar 22, 2016 · 0 comments

Comments

@kodlian
Copy link

kodlian commented Mar 22, 2016

RocketSockem works perfectly for receiving and sending messages from JavaScript client. But I'm not able to disconnect the JS Client on Safari - on Chrome it takes a very long time to be disconnected.

     // Server
    _server = [[RSMServer alloc] init];

    _server.port = 19487;
    _server.interface = @"localhost";

    [_server.webSockets subscribeNext:^(RSMWebSocket *socket) {
        [socket.messages subscribeNext:^(id x) {
            [socket sendMessage:x];
        }];
    }];
    [_server start:nil];
    // Client
    ws = new WebSocket("ws://localhost:19487");
    ...
    ws.close();
@kodlian kodlian changed the title Disconnect from JS won't work Disconnect from JS does not work Mar 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant