function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anjali G 5Anjali G 5 

Connect to localhost using websocket

Hi,
I have a requirement to use webscoket in Salesforce VF page and open a websocket server with local host. 
I should be able to send data and get response back from server. Anybody has any idea? Please help. 
SandhyaSandhya (Salesforce Developers) 
Hi,

Check with below links where you have the sample code for the same.

https://salesforce.stackexchange.com/questions/95442/how-to-connect-to-websocket-in-lightning
 
http://www.johnbrunswick.com/2014/01/internet-of-customers-custom-visualforce-page-with-web-sockets-arduino-temperature/
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya