Snap integration for the websockets library