Is there a way I can use something like on the IC?

I want to have some real time communication system in my project, is there a way I can run a server for in a cannister or some other way to use websockets on the IC? Thank you.

1 Like

Here an answer to the same question from @rudi that is more up-to-date:


Hi @iamenochchirima

we have just released our WebSockets proof-of-concept that showcases one way of enabling WebSockets and therefore “almost” real-time communication. You can find all the information in the following thread:

1 Like

Thank you for the update, studying it.

Hi @rbirkner Did you try to run your implementation of the gateway socket on a hosted service?

We recently tried a web-socket implementation in javascript to speak to a canister for data transmission. We had success locally, however when trying to run on mainnet we ran into port issues.

Some of the port assignments we tried included port 80, 443/tcp and defined application ports 44389, 3001, we ran into issues with port 3000.

Do you know from your work if there was specific port assignments that needed to implemented to run on mainnet? Your help would greatly be appreciated.

Just tagging @ilbert ans @massimoalbarello as they are the ones maintaining web sockets nowadays.


Hello @jdchibuk! @ilbert wrote a tutorial explaining how to interact with the IC via WebSockets. I suggest you check it out and reach out to us on Discord if you have any questions.