These are chat archives for fanout/pushpin

11th
Jul 2018
Adrian
@picarsite
Jul 11 2018 20:32
Hey @all, I have a problem with my Node.js WebSocket application. I'm using Pushpin as the docker version and my app is also in a container. I'm trying to run the demo's https://github.com/fanout/pushpin#example-using-websockets and https://github.com/fanout/express-grip#usage But with both I have the problem. The clients can connect (for example the Simple WebSocket client addon for Chrome) and send a message which is sent back as a response. Now, when I sent a POST request with Postman to Pushpin, the subscribed clients do not get the message but I get a 'ok' (like in the examples) as a response for my POST request. That means that "expressGrip.publish('<channel>', new grip.HttpStreamFormat(data + '\n'));" has no effect.... Thanks.
Justin Karneges
@jkarneges
Jul 11 2018 23:55
hi @picarsite , to publish data to websocket connections be sure to use grip.WebSocketFormat