How to set self websockets endnode

Hi,
I had followed the matic document to build up full node in my VM. Was there any document to set my websockets service? How to access my node from web3.js by websockets?