如何在React Native中实现SignalR以实现推送通知?
我已经看到通过使用https://github.com/aspnet/SignalR之类的包在react js中实现SiganlR。
我没有找到任何在React Native中实现signalR的解决方案
答案 0 :(得分:0)
您可以使用此软件包。我现在正在使用它,它可以正常工作,但是重新连接hub.start()时遇到问题。 您可以使用以下命令进行安装:
Private Function txt2array(ByRef fileNames() As String) As String()
'On Error Resume Next
Dim i As Long
Dim commentline, templine As String
Dim oFSO As New FileSystemObject
Dim oFSTR As TextStream
Dim iCount As Long: iCount = 0 'declaring and initializing it
Dim temp() As String
'loop through all file names
For i = 1 To UBound(fileNames)
Set oFSTR = oFSO.OpenTextFile(fileNames(i), 1, -1)
tempdata = oFSTR.ReadAll
MsgBox tempdata
oFSTR.Close
Next i
End Function
示例:
npm install @aspnet/signalr