Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

socket.io 3 #207

Open
paulvancity opened this issue Nov 19, 2020 · 9 comments
Open

socket.io 3 #207

paulvancity opened this issue Nov 19, 2020 · 9 comments

Comments

@paulvancity
Copy link

Is this compatible with socket.io 3? It seems to connect but my socket server doesn't detect the connection.

@Taluu
Copy link
Contributor

Taluu commented Nov 19, 2020

Not sure, haven't had a look at socket.io in ages...

As already said, this project is not really maintained anymore, even though PR are still looked at.

@quiquelhappy
Copy link

this is really important, please, someone take a look at this, I don't have the knowledge to implement the new methods to this library, but, these links will be useful:

@merigold
Copy link

merigold commented Jan 19, 2021

Try create class:

class Version3x extends Version2X {
    
    
    /** {@inheritDoc} */
    public function getName()
    {
        return 'SocketIO Version 3.X';
    }
    
    /** {@inheritDoc} */
    protected function getDefaultOptions()
    {
        $defaults = parent::getDefaultOptions();
        
        $defaults['version'] = 4;
        
        return $defaults;
    }
}

then:
$this->client = new Client(new Version3x($this->url, []));

@tohenk
Copy link

tohenk commented Jan 31, 2021

Try my fork https://github.com/tohenk/elephant.io.

@alfreddagenais
Copy link

@tohenk thank you for all this work! I just try for my personal use, and now Work on my V3.1.0 Socket.IO server!! Amazing. Thank you again

@SylvainSimon
Copy link

Try my fork https://github.com/tohenk/elephant.io.

OMG i love you guy, your fork really work perfectly with socket io 4 server ?
I just want to emit events, its only a question of "version" passed ?

@andyyapwl
Copy link

Try my fork https://github.com/tohenk/elephant.io.

Amazing work! It works perfectly!

@hyf3513OneGO
Copy link

hyf3513OneGO commented Feb 18, 2022

Try my fork https://github.com/tohenk/elephant.io.

really great work!THX,BRO!!!

@HirenViradia
Copy link

Try create class:

class Version3x extends Version2X {
    
    
    /** {@inheritDoc} */
    public function getName()
    {
        return 'SocketIO Version 3.X';
    }
    
    /** {@inheritDoc} */
    protected function getDefaultOptions()
    {
        $defaults = parent::getDefaultOptions();
        
        $defaults['version'] = 4;
        
        return $defaults;
    }
}

then: $this->client = new Client(new Version3x($this->url, []));

Is this working?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants