- afb_context_init(&wsreq->xreq.context, ws->session, afb_wsj1_msg_token(msg));
- if (!wsreq->xreq.context.invalidated)
- wsreq->xreq.context.validated = 1;
- if (ws->new_session != 0) {
- wsreq->xreq.context.created = 1;
- ws->new_session = 0;
- }
+ afb_context_init(&wsreq->xreq.context, ws->session, ws->token, ws->cred);