D
D
Dilik Pulatov2018-06-07 13:00:58
RESTful API
Dilik Pulatov, 2018-06-07 13:00:58

How to work with API inside Websocket server?

Hello!
Created a web socket server... inside it will have to get some data from the API during operation... how to implement this? what to use? Tell me please. I haven't been into websocket for a long time. thanks for the early.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jershell, 2018-06-07
@jershell

Or use jsonrpc https://github.com/jershell/simple-jsonrpc-js here on this spec www.jsonrpc.org/specification
or switch to socket.io and not invent complexity
or choose a different message format
or write your own messaging format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question