Websocket integration with joplin server API

Can we use socket.io with joplin Server Api ?

if yes, how can we integrate socket.io with it ? Also if socket.io doesnt work , is there any Js library that should work with it ?