Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
Is there way to connect to apex code with wss (websocket) protocol?
I successfully connected to an external url from Salesforce client component, but I am wondering if there is a way to create a websocket server in Salesforce and connect to it from a client component.
asked Jun 4, 2019 at 10:10
7522 silver badges77 bronze badges
Apex only supports HTTP/1 from early 2000's . WebSocket server or GRPC(HTTP/2) are bi-directional and quite latest mid/late 2010's. So natively in Salesforce Apex you cant achieve this.
You can raise an idea for its support in apex here.
answered Jun 4, 2019 at 10:28
Pranay JaiswalPranay Jaiswal
35.7k1515 gold badges7070 silver badges126126 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged