interledgerjs / ilp-plugin-btp

This has been moved to the monorepo https://github.com/interledgerjs/interledgerjs
8 stars 7 forks source link

Don't send a ping packet before auth is sent #62

Open emschwartz opened 4 years ago

emschwartz commented 4 years ago

The BTP spec says:

Before anything else, when a client connects to a server, it sends a special Message request. Its primary protocolData entry MUST have name 'auth'...

Currently, the BTP plugin sends a WebSocket Ping message before the auth packet is sent. Either the spec should be changed to allow this or the implementation should be changed to ensure that the auth packet is the first one sent.