AngelWebSocket constructor
AngelWebSocket(
- Angel app, {
- bool sendErrors = false,
- bool allowClientParams = false,
- bool allowAuth = true,
- StreamChannel<
WebSocketEvent> ? synchronizationChannel, - WebSocketResponseSerializer? serializer,
- Function? deserializer,
- List<
String> allowedOrigins = const [], - List<
String> allowedProtocols = const [],
Implementation
AngelWebSocket(this.app,
{this.sendErrors = false,
this.allowClientParams = false,
this.allowAuth = true,
this.synchronizationChannel,
this.serializer,
this.deserializer,
this.allowedOrigins = const [],
this.allowedProtocols = const []}) {
serializer ??= json.encode;
deserializer ??= (params) => params;
}