Sort:  

Make sure your config.ini has the following line in it ...

# Endpoint for websocket RPC to listen on
rpc-endpoint = 127.0.0.1:8090