When a server rejects a websocket upgrade request and sends a response body, gun doesn't strip the stream reference (set to {websocket, ...}) in the gun_data message. This breaks matching the StreamRef value in these messages.
I added a unit test for this case (it seems that the Autobahn suite doesn't verify it).
When a server rejects a websocket upgrade request and sends a response body, gun doesn't strip the stream reference (set to
{websocket, ...}
) in thegun_data
message. This breaks matching theStreamRef
value in these messages.I added a unit test for this case (it seems that the Autobahn suite doesn't verify it).