Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kite: improve client/server connection configuration #196

Merged
merged 11 commits into from
Mar 21, 2017

Conversation

rjeczalik
Copy link
Member

@rjeczalik rjeczalik commented Mar 19, 2017

This PR reworks connection configuration part of the kite package.

Currently:

  1. it is not possible to configure SockJS server handler
  2. client can be configured via setting the following fields:
  • (*Kite).ClientFunc
  • (*Client).ClientFunc
  • (*Client).ReadBufferSize
  • (*Client).WriteBufferSize
  • (*DialOptions).ReadBufferSize
  • (*DialOptions).WriteBufferSize
  • (*DialOptions).Timeout
  1. it is not possible to configure websocket client (compression, response limit etc.)

This PR unifies the configuration by adding:

  1. (*config.Config).SockJS
  2. (*config.Config).XHR + external sockjs.WebSocketUpgrader (sockjs: allow for configuring websocket connections igm/sockjs-go#56)
  3. (*config.Config).Websocket

All the changes are done in a backward-compatible way, with deprecation documentation in appropriate places.

Please take a look.

@rjeczalik rjeczalik added the wip label Mar 19, 2017
@rjeczalik rjeczalik self-assigned this Mar 19, 2017
@rjeczalik rjeczalik removed the wip label Mar 20, 2017
@rjeczalik rjeczalik assigned cihangir and ppknap and unassigned rjeczalik Mar 20, 2017
@@ -1,8 +1,7 @@
language: go
sudo: false
go:
- 1.7.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets have 1.7.x while we are still with it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@cihangir cihangir merged commit 1ed8044 into master Mar 21, 2017
@cihangir cihangir deleted the connection-config branch March 21, 2017 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants