addEvents method
Adds new WebSocket events to the route map.
The events
parameter is a map where keys are route paths and values are SocketEvent handlers.
Implementation
void addEvents(Map<String, SocketEvent> events) {
routes.addAll(events);
}