antoniodipinto / ikisocket

🧬 WebSocket wrapper with event management for Fiber https://github.com/gofiber/fiber. Based on Fiber WebSocket and inspired by Socket.io
MIT License
123 stars 21 forks source link
events express fiber go golang listener socket-io web websocket

Last update

Here's What's Happening

This repository has moved to a new URL, directly under Fiber's Contrib Repo. This move is part of my effort to enhance the project and offer you better features and support.

Here: https://github.com/gofiber/contrib/blob/main/socketio/README.md

Important note, the name has now changed from ikisocket to Socket.IO

If you wish to switch directly to the new repository, ensure you update your code accordingly.

From this:

import (
    "github.com/antoniodipinto/ikisocket"
    "github.com/gofiber/contrib/websocket"
    "github.com/gofiber/fiber/v2"
)

ikisocket.On("EVENT_NAME", func(ep *ikisocket.EventPayload) {})

ikisocket.New(func(kws *ikisocket.Websocket){})

To this

import (
    "github.com/gofiber/contrib/socketio"
    "github.com/gofiber/contrib/websocket"
    "github.com/gofiber/fiber/v2"
)

socketio.On("EVENT_NAME", func(ep *socketio.EventPayload) {})

socketio.New(func(kws *socketio.Websocket){})

Quick Notes:


WebSocket wrapper for Fiber v2 with events support

Based on Fiber Websocket and inspired by Socket.io

Star History

Star History Chart