All Projects → latelierco → vue-signalr

latelierco / vue-signalr

Licence: MIT License
No description or website provided.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-signalr

online-training
Online Training website using ASP.Net Core 2.0 & Angular 4
Stars: ✭ 26 (-31.58%)
Mutual labels:  signalr
AspNetCore.Client
On Build client generator for asp.net core projects
Stars: ✭ 14 (-63.16%)
Mutual labels:  signalr
TypedSignalR.Client
C# Source Generator to Create Strongly Typed SignalR Client.
Stars: ✭ 16 (-57.89%)
Mutual labels:  signalr
PugetSound
PugetSound allows you and your group to enjoy music together using Spotify.
Stars: ✭ 52 (+36.84%)
Mutual labels:  signalr
AngularAspNetCoreSignalR
Build a simple chat app with Angular and ASP.NET Core SignalR
Stars: ✭ 12 (-68.42%)
Mutual labels:  signalr
dotNetify-react-native-demo
DotNetify + React Native + .NET Core demo
Stars: ✭ 43 (+13.16%)
Mutual labels:  signalr
iShop
A shopping website using ASP.net Core 2.0, EF Core 2.0 and Angular 5
Stars: ✭ 17 (-55.26%)
Mutual labels:  signalr
IdentityServer4SignalR
Demo of Authentication SignalR with JWT Tokens via OpenID Connect in DotNet Core
Stars: ✭ 35 (-7.89%)
Mutual labels:  signalr
AzureFunctionExtensions
Set of Azure Function Extensions: Redis output and IDatabase resolving, HTTP calls, etc.
Stars: ✭ 32 (-15.79%)
Mutual labels:  signalr
SignalR-Samples
Using SiganlR in ASP.NET applications.
Stars: ✭ 12 (-68.42%)
Mutual labels:  signalr
signalr
SignalR server and client in go
Stars: ✭ 69 (+81.58%)
Mutual labels:  signalr
Chatazon
Implementing websockets in .NET Core
Stars: ✭ 19 (-50%)
Mutual labels:  signalr
Achievements
A micro-service to listen to Azure Service bus for "Achievement Unlocked Events", process them, and emit a message to listening clients via SignalR
Stars: ✭ 13 (-65.79%)
Mutual labels:  signalr
TraceHub
Centralized and distributed logging for Web applications and services, extending System.Diagnostics and Essential.Diagnostics, providing structured tracing and logging withou needing to change 1 line of your application codes
Stars: ✭ 22 (-42.11%)
Mutual labels:  signalr
react-redux-aspnet-core-webapi
No description or website provided.
Stars: ✭ 34 (-10.53%)
Mutual labels:  signalr
IotHub
Cloud based IoT system solution. MQTT Broker, MQTT Agent, SignalR Hub, Data Source API
Stars: ✭ 34 (-10.53%)
Mutual labels:  signalr
aspnet-core-react-redux-playground-template
SPA template built with ASP.NET Core 6.0 + React + Redux + TypeScript + Hot Module Replacement (HMR)
Stars: ✭ 78 (+105.26%)
Mutual labels:  signalr
signalr-client
SignalR client library built on top of @aspnet/signalr. This gives you more features and easier to use.
Stars: ✭ 48 (+26.32%)
Mutual labels:  signalr
SignalR-Core-SqlTableDependency
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
Stars: ✭ 36 (-5.26%)
Mutual labels:  signalr
WeChatMiniAppSignalRClient
微信小程序 Asp.net Core SignalR Client 代码片段演示
Stars: ✭ 27 (-28.95%)
Mutual labels:  signalr

vue-signalr

Installation

$ npm install @latelier/vue-signalr --save

Get started

import Vue from 'vue'
import VueSignalR from 'vue-signalr'

Vue.use(VueSignalR, 'SOCKET_URL');

new Vue({
  el: '#app',
  render: h => h(App),
  
  created() {
    this.$socket.start({
      log: false // Active only in development for debugging.
    });
  },

});

Example with component

Vue.extend({

  ...
  
  methods: {
  
    someMethod() {
      this.$socket.invoke('socketName', payloadData)
        .then(response => {
          ...
        })
    }
    
    async someAsyncMethod() {
      const response = await this.$socket.invoke('socketName', payloadData)
      ...
    }
    
  },

  // Register your listener here. 
  sockets: {
  
    // Equivalent of
    // signalrHubConnection.on('someEvent', (data) => this.someActionWithData(data))
    someEvent(data) {
      this.someActionWithData(data)
    }
    
    otherSomeEvent(data) {
      this.otheSomeActionWithOtherSomeData(data)
    }
    
  }

});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].