init method
Initializes the WebSocket connection with the provided config.
This method initializes the FreeFireSocketService, connects to the WebSocket server, and prepares to send and receive messages.
Implementation
Future<void> init(SocketConfig config) async {
service = FreeFireSocketService<T>(config);
await service.init();
await service.connect();
}