yiicod / yii2-socketio

46 stars 30 forks source link

Does this extension support https for socket.io? #13

Closed shamyne closed 5 years ago

shamyne commented 5 years ago

I have everything configured and running nicely with HTTP, but I get a connection error whenever I try using HTTPS. What do I need to change to get it to work with HTTPS?

Thanks!

lexxorlov commented 5 years ago

Hello. You should set this for console config:

'controllerMap' => [
    'socketio' => [
        'ssl' => [
            'key' => '/etc/ssl/certs/xxxx.key',
            'cert' => '/etc/ssl/certs/xxxx.crt',
        ]
    ],
],
shamyne commented 5 years ago

That worked! Thank you!

CarlosPSMora commented 4 years ago

Hello. You should set this for console config:

'controllerMap' => [
    'socketio' => [
        'ssl' => [
            'key' => '/etc/ssl/certs/xxxx.key',
            'cert' => '/etc/ssl/certs/xxxx.crt',
        ]
    ],
],

En que parte debo colocar este código??

AkaashK commented 4 years ago

How do I set console config like the above given type..?

AkaashK commented 4 years ago

Hello. You should set this for console config:

'controllerMap' => [
    'socketio' => [
        'ssl' => [
            'key' => '/etc/ssl/certs/xxxx.key',
            'cert' => '/etc/ssl/certs/xxxx.crt',
        ]
    ],
],

How to set this up?