Last active
          March 19, 2019 11:07 
        
      - 
      
 - 
        
Save kvnam/1597b3ef1dd9a512ab191e844dd6e210 to your computer and use it in GitHub Desktop.  
    WebSocket Event
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| ..., | |
| multiValueHeaders: | |
| { | |
| Host: [ 'myapiID.execute-api.ap-south-1.amazonaws.com' ], | |
| 'Sec-WebSocket-Extensions': [ 'permessage-deflate; client_max_window_bits' ], | |
| 'Sec-WebSocket-Key': [ 'mNRIjuK+dWTWDS8VCYeuyg==' ], | |
| 'Sec-WebSocket-Version': [ '13' ], | |
| 'X-Amzn-Trace-Id': [ 'Root=1–abc–xyz' ], | |
| 'X-Forwarded-For': [ 'my public IP' ], | |
| 'X-Forwarded-Port': [ '443' ], | |
| 'X-Forwarded-Proto': [ 'https' ] }, | |
| requestContext: | |
| { | |
| routeKey: '$connect', | |
| authorizer: '', | |
| messageId: null, | |
| integrationLatency: '', | |
| eventType: 'CONNECT', | |
| error: '', | |
| extendedRequestId: 'WyHPAHbQBcwFWMw=', | |
| requestTime: '19/Mar/2019:09:39:18 +0000', | |
| messageDirection: 'IN', | |
| stage: 'Dev', | |
| connectedAt: 1552988358417, | |
| requestTimeEpoch: 1552988358425, | |
| identity: { /* NOT REQUESTED */ }, | |
| requestId: 'WyHPAHbQBcwFWMw=', | |
| domainName: 'myapiID.execute-api.ap-south-1.amazonaws.com', | |
| connectionId: 'WyHPAfymhcwCENw=', | |
| apiId: 'myapiID', | |
| status: '' | |
| }, | |
| ... | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| ..., | |
| requestContext: { | |
| routeKey: '$disconnect', | |
| authorizer: '', | |
| messageId: null, | |
| integrationLatency: '', | |
| eventType: 'DISCONNECT', | |
| error: '', | |
| extendedRequestId: 'WyHRWHggBcwFWMw=', | |
| requestTime: '19/Mar/2019:09:39:33 +0000', | |
| messageDirection: 'IN', | |
| stage: 'Dev', | |
| connectedAt: 1552988358417, | |
| requestTimeEpoch: 1552988373492, | |
| identity: { /* NOT REQUESTED */ }, | |
| requestId: 'WyHRWHggBcwFWMw=', | |
| domainName: 'myapiID.execute-api.ap-south-1.amazonaws.com', | |
| connectionId: 'WyHPAfymhcwCENw=', | |
| apiId: 'myapiID', | |
| status: '' | |
| }, | |
| ... | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment