code: func NewWebsocketManager(funcMap map[string]*RPCFunc, logger *logging.Logger,
  	wsConnOptions ...func(*wsConnection)) *WebsocketManager {
  	return &WebsocketManager{
  		funcMap: funcMap,
  		Upgrader: websocket.Upgrader{
  			CheckOrigin: func(r *http.Request) bool {
  				// TODO ???
  				return true
  			},
  		},
  		logger:        logger,
  		wsConnOptions: wsConnOptions,
  	}
  }
docs: // NewWebsocketManager returns a new WebsocketManager that routes according to
  // the given funcMap and connects to the server with the given connection
  // options.