CS2DT饰品开放平台
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
首页商户中心
首页商户中心
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. websocket
  • Response codes
  • CS2DT Open Platform Access Guide
  • v1
    • user related interface
      • Steam account status query Copy
      • User balance query
      • Create Steam account status check
      • Steam account status query
    • market prodcut related interface
      • CS2 Style Data
      • get full Items
      • Market Search
      • item price query
      • all the filters query
      • item for sale list query
      • Get the sales status of the product
      • Batch query of products on sale by product ID
      • Get the sales details of a product
    • purchase related interface
      • buy item
      • quick buy item
    • order related interface
      • buyer order list v2
      • buyer order list
      • buyer order detail
      • buyer cancel order
    • callback related
      • Callback Notification Service Description
    • exchange rate
      • USD/CNY exchange rate
    • websocket
      • How to Use WebSocket
      • Get WSS Address
        GET
  1. websocket

How to Use WebSocket

Update#

20240628#

Preparation#

Connect to websocket:
You need to contact the CS2DT administrator to enable the websocket permission for you.
You obtain the WSS address and get the socket service connection URL.
Note: The validity period for obtaining the WSS address to access the service is 30 minutes. If it exceeds 30 minutes, access will not be possible, and you will need to obtain the WSS address again.

Examples#

Description#

requestId: Unique Identifier For The Pushed Data
roomId:Topic
event:Event Parameters
new listed
update updated
remove removed
data:Data Parameters
delivery 1-Manual 2-Auto
id productId
itemId itemId
price price
updateTime Listing Updated Time
sendTime:Socket Message Push Time
修改于 2025-01-03 06:39:42
上一页
USD/CNY exchange rate
下一页
Get WSS Address
Built with