Such is the unique way that Node and JS differ on their WebSocket interfaces, this will attempt one and fall-back to the other if a syntax error is caught. Not great, but it works. I consider this a temporary solution to finding a library that handles WebSockets correctly in an isomorphic library.
Such is the unique way that Node and JS differ on their WebSocket interfaces, this will attempt one and fall-back to the other if a syntax error is caught. Not great, but it works. I consider this a temporary solution to finding a library that handles WebSockets correctly in an isomorphic library.