(requestedVersion string)
| 329 | } |
| 330 | |
| 331 | func negotiateProtocolVersion(requestedVersion string) string { |
| 332 | if _, ok := supportedProtocolVersions[requestedVersion]; ok { |
| 333 | return requestedVersion |
| 334 | } |
| 335 | return ProtocolVersion |
| 336 | } |
| 337 | |
| 338 | func (s *Server) getSession(id string) (session, bool) { |
| 339 | if id == "" { |