Liudas Drejeris
Dec 23, 2023

Hi,

i don't know which server you are using, could you tell me more? But from the code example in the article, sendMessage() sends text to the server and the server returns the same text (echo the message that was sent), so in the example you receive what you send. In a real-world application, your server sends messages over WebSocket to which the application is connected. I hope this answers your question.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Liudas Drejeris
Liudas Drejeris

Written by Liudas Drejeris

Senior Full Stack Developer, Photographer , Gardener and Healthy Lifestyle Enthusiast

Responses (1)

Write a response