completly rewrite to actionframework and rack-websocket