use static buffer and nonblocking socket in websocket client