socket.io-client-csharp icon indicating copy to clipboard operation
socket.io-client-csharp copied to clipboard

error CS0118: 'SocketIO' is a namespace but is used like a type

Open Mathiaszero opened this issue 1 year ago • 1 comments

using System;
using System.Threading.Tasks;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Connection: MonoBehaviour
{
	
	public void Start()
	{
		var client = new SocketIO("http://localhost:11000/");

	}
	
	public void Update()
	{

	}

}

How can I resolve?

Mathiaszero avatar May 07 '24 15:05 Mathiaszero

use SocketIOClient.SocketIO (with the namespace)

doghappy avatar May 08 '24 14:05 doghappy