-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Websocket in RN seems to to respond correctly with a pong when ping is received (as per the Websockets spec.).
It would be great if there also where a function to send a ping
and an event for knowing when pong
is received.
Like this:
var ws = new WebSocket('ws://host.com/path');
ws.ping();
ws.onpong = () => {
// pong received
// this socket is alive
};
williamdes and tapz
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.