Fixed typo in context.md (#11373)

This commit is contained in:
Le Michel
2024-05-27 01:22:38 +02:00
committed by GitHub
parent af4e844b62
commit ec8e5d7cd3

View File

@@ -22,7 +22,7 @@ Bun.serve<{ socketId: number }>({
websocket: {
// define websocket handlers
async message(ws, message) {
// the contextual dta is available as the `data` property
// the contextual data is available as the `data` property
// on the WebSocket instance
console.log(`Received ${message} from ${ws.data.socketId}}`);
},