Create websocket client code for Raspberry Pi