added ToWebsocket to the library