code: func (s *WebSocketServer) SetOriginChecker(fn func(r *http.Request) bool) {
  	s.originChecker = fn
  }
docs: // SetOriginChecker sets an optional function that allows check the request origin
  // before accepting the connection.