Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

connection can be either Connection or ConnectionConfiguration #606

Open
@canadaduane

Description

@canadaduane

The problem I am facing
It's a bit confusing that there is aconnection key in various hook payloads that is either aConnection instance or aConnectionConfiguration object. Both are quite different:

Connection

  webSocket:WebSocket  context:any  document:Document  pingInterval:NodeJS.TimeoutpongReceived=true  request:HTTPIncomingMessage  timeout:number  callbacks:any  socketId:string  lock:AsyncLock  readOnly:Boolean  logger:Debugger

ConnectionConfiguration

  readOnly:boolean  requiresAuthentication:boolean  isAuthenticated:boolean

But they appear to be the same at first glance:

onConnect({connection}){// connection is ConnectionConfiguration})beforeHandleMessage({connection}){// connection is Connection})

The solution I would like
It would be great ifConnectionConfiguration were alwaysconnectionConfig andConnection were alwaysconnection.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp