also use "value" hash when using a websocket

This fix creates a uniform api no matter if http:// or ws:// is used