Creates a new WebSocketEvent.
WebSocketEvent({required this.type, this.data, DateTime? timestamp}) : timestamp = timestamp ?? DateTime.now();