doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
733 stars 126 forks source link

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

Closed Mathiaszero closed 4 months ago

Mathiaszero commented 5 months ago
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?

doghappy commented 5 months ago

use SocketIOClient.SocketIO (with the namespace)