learning example for web socket