-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e56ec1
commit 02b0aea
Showing
5 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'to triage' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
|
||
```ts | ||
import { serve } from "https://deno.land/[email protected]/http/server.ts"; | ||
import { Server } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const io = new Server(); | ||
|
||
io.on("connection", (socket) => { | ||
console.log(`socket ${socket.id} connected`); | ||
|
||
socket.emit("hello", "world"); | ||
|
||
socket.on("disconnect", (reason) => { | ||
console.log(`socket ${socket.id} disconnected due to ${reason}`); | ||
}); | ||
}); | ||
|
||
await serve(io.handler(), { | ||
port: 3000, | ||
}); | ||
``` | ||
|
||
**Expected behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Platform:** | ||
|
||
- Device: [e.g. Samsung S8] | ||
- OS: [e.g. Android 9.2] | ||
|
||
**Additional context** | ||
|
||
Add any other context about the problem here. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a Question | ||
url: https://github.com/socketio/socket.io-deno/discussions/new?category=q-a | ||
about: Ask the community for help |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always | ||
frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
|
||
A clear and concise description of any alternative solutions or features you've | ||
considered. | ||
|
||
**Additional context** | ||
|
||
Add any other context or screenshots about the feature request here. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Bug fix | ||
about: A fix for a known issue | ||
title: '' | ||
labels: 'to triage' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Related issue or discussion: |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Feature implementation | ||
about: A new awesome feature | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Related issue or discussion: | ||
|
||
**New behavior** | ||
|
||
```ts | ||
import { serve } from "https://deno.land/[email protected]/http/server.ts"; | ||
import { Server } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const io = new Server(); | ||
|
||
io.on("connection", (socket) => { | ||
console.log(`socket ${socket.id} connected`); | ||
|
||
socket.emit("hello", "world"); | ||
|
||
socket.on("disconnect", (reason) => { | ||
console.log(`socket ${socket.id} disconnected due to ${reason}`); | ||
}); | ||
}); | ||
|
||
await serve(io.handler(), { | ||
port: 3000, | ||
}); | ||
``` |