I'm starting in Crystal and I want to try to create a connection from a WebSocket server with Crystal as client, is it possible to do it, is there any bookstore for this or is crystal language already available?
I'm starting in Crystal and I want to try to create a connection from a WebSocket server with Crystal as client, is it possible to do it, is there any bookstore for this or is crystal language already available?
I found this in KeepCoding that helped me to solve my question, you can still check the GitHub for more information:
socket = HTTP::WebSocket.open("example.com", "/connect")
socket.send "action"
message = socket.receive