updated for release 0.0.7
updated websocket implementation to prevent multi-sending