简体   繁体   中英

Sample web socket connection

I would like to know a simple sample example which sends and receives JSON message using web socket. I know how to write client side program using Web Socket. But how do I write client side program ( Running Web Socket Client side programming ) using c or java web service and host it on tomcat (localhost) web server?
Here in client side i want to give my own localhost address instead of "echo... "

What are the system requirement and installations/plug-in available for these??
Help would be much appreciated.

Thanks

我不完全理解为什么要这样做,但是如果您要查找客户端和服务器端的C ++实现,也许应该看看“ websocketpp”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM