Improve web socket interface.