Websockets and JsSIP help

Does anyone know where I can find documentation on setting up a websocket server connection to work with asterisk and jssip, I can’t seem to find a guide and would love any help.