robtaussig / react-use-websocket

React Hook for WebSocket communication
MIT License
1.62k stars 135 forks source link

Event message timestamps dont seem to be proper #194

Open zehawki opened 1 year ago

zehawki commented 1 year ago

onOpen, onError etc message timestamps dont seem to be proper. Am I missing something?

eg:

{
  timeStamp: 39658543.70000005
  type: "open"
}
{
  "timeStamp": 40542758.70000005,
  "type": "close"
}
{
  "timeStamp": 11760197.200000048,
  "type": "close"
}
alainux commented 1 year ago

It looks like they are milliseconds since the server started.