http://developer.mbed.org/teams/KDDI-Fx0-hackathon/code/WebSocketClient/#53d05ccff94a