Hi everyone,

i'm new to nodejs and i'm trying to setup a websocket connection to interact with my drupal installation.

I could setup nodejs and the module, it work in the browser but i need to make it interact from an external application ( C# )

Basicly, i need to login the user ( with username / password ), send/recieve some user infos, and logout the user when the ws connection is closed.
I can make the login/send/get infos with service module but this remain http and not websocket.

i don't know what is the good way to make the connection between nodejs and service ( or skip service if nodejs can do all )

Do i need to make a request with the service module first to make the login and get sessionname & id and then interact with ws://localhost:8080/socket.io/1/websocket/xxxxxxx ?

Comments

Anonymous’s picture

you need to send an authToken to the node.js application that it can use to authenticate your application with Drupal.

the node.js server part doesn't make any auth decisions, it simply delegates them to Drupal.

Anonymous’s picture

Status: Active » Closed (works as designed)