yiicod / yii2-socketio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this extension support https for socket.io?

shamyne opened this issue · comments

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!

Hello. You should set this for console config:

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

That worked! Thank you!

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??

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

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?