Socket constructor

Socket(
  1. bool secure,
  2. String host,
  3. int port,
  4. String path,
  5. String key, {
  6. String clientType = 'websocket',
  7. int pingInterval = 5000,
})

Implementation

Socket(
  bool secure,
  String host,
  int port,
  String path,
  String key, {
  this.clientType = 'websocket',
  this.pingInterval = 5000,
})  : _baseWebSocketUrl = '${secure ? 'wss://' : 'ws://'}$host:$port${path}peerjs?key=$key',
      _baseSocketioUrl = '${secure ? 'wss://' : 'ws://'}$host:$port',
      _baseSocketioQueryParams = {'key': key};