implement websocket method matching and invocation