socket static method
Init Echo with Socket client
Implementation
static Echo<IO.Socket, SocketIoChannel> socket(
String host, {
String? namespace,
bool autoConnect = true,
Map<String, String> authHeaders = const {
'Content-Type': 'application/json'
},
Map moreOptions = const {},
Map<String, dynamic> Function(String, Map)? channelDecryption,
}) =>
Echo<IO.Socket, SocketIoChannel>(SocketIoConnector(
host,
namespace: namespace,
autoConnect: autoConnect,
authHeaders: authHeaders,
moreOptions: moreOptions,
channelDecryption: channelDecryption,
));