koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

kite: configuration-less transport #158

Closed rjeczalik closed 7 years ago

rjeczalik commented 8 years ago

The issue is about making it possible to use a configured *kite.Kite with "mixed" kites, where one of them uses websocket and other xhr transport.

Right now one needs to configure the transport explicitly for each endpoint - if wrong transport is used, it would make the communication fail (e.g. websocket for xhr-only endpoints).

The idea is to try to connect over websocket and then fallback to xhr.

Couple of bonus points:

rjeczalik commented 7 years ago

Done by https://github.com/koding/kite/pull/201.