How to use the streamr-client-protocol.WebsocketResponse.deserialize function in streamr-client-protocol

To help you get started, we’ve selected a few streamr-client-protocol examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github streamr-dev / streamr-client-javascript / src / Connection.js View on Github external
this.socket.onmessage = (messageEvent) => {
            try {
                const websocketResponse = WebsocketResponse.deserialize(messageEvent.data)
                this.emit(websocketResponse.constructor.getMessageName(), websocketResponse)
            } catch (err) {
                this.emit('error', err)
            }
        }

streamr-client-protocol

JavaScript classes implementing the Streamr client-to-node protocol

Apache-2.0
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis

Similar packages